package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户作答对象 mine_user_answer
 * 
 * @author ruoyi
 * @date 2025-01-14
 */
public class MineUserAnswer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Long userId;

    /** 试卷ID */
    private Long examId;

    /** 题目ID */
    private Long questionId;

    /** 用户选择的答案 */
    @Excel(name = "用户选择的答案")
    private String selectedAnswer;

    /** 是否正确 */
    @Excel(name = "是否正确")
    private Integer isCorrect;

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setExamId(Long examId) 
    {
        this.examId = examId;
    }

    public Long getExamId() 
    {
        return examId;
    }
    public void setQuestionId(Long questionId) 
    {
        this.questionId = questionId;
    }

    public Long getQuestionId() 
    {
        return questionId;
    }
    public void setSelectedAnswer(String selectedAnswer) 
    {
        this.selectedAnswer = selectedAnswer;
    }

    public String getSelectedAnswer() 
    {
        return selectedAnswer;
    }
    public void setIsCorrect(Integer isCorrect) 
    {
        this.isCorrect = isCorrect;
    }

    public Integer getIsCorrect() 
    {
        return isCorrect;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("examId", getExamId())
            .append("questionId", getQuestionId())
            .append("selectedAnswer", getSelectedAnswer())
            .append("isCorrect", getIsCorrect())
            .toString();
    }
}
